package com.qezhhnjy.bilibili.service;

import com.qezhhnjy.bilibili.entity.CommonResult;
import com.qezhhnjy.bilibili.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zhaoyangfu - 2021/4/4 0:10
 */
@FeignClient("CLOUD-PAYMENT-SERVICE")
@Service
public interface PaymentService {

    @PostMapping("/payment/create")
    CommonResult<String> create(@RequestBody Payment payment);
}
